export default {
    passWordInput: {
        value: [String, Number],
        gutter: 0, //间隔
        mask: {
            type: Boolean,
            default: () => true,
        }, //是否加密
        length: {
            type: Number,
            default: () => 6,
        },
        inputProps: {
            default: () => {
                return {};
            },
        },
        keyBoardProps: {
            default: () => {
                return {};
            },
        },
    },
    defaultInput: {
        value: {
            type: [String, Number],
            required: true,
        },
        type: {
            type: [String],
            required: false,
            default: "mix", //mix(所有）int(整数)，float(小数) zh,cn,PasswordInput //展示键盘输入方式，默认中文，和键盘相对应
        },
        close: {
            type: [Boolean, undefined],
            default: () => true,
        },
        //如果type是mix类型，默认使用的是什么输入法
        //cn还是en，默认是cn
        inputLang: {
            validator: function(value) {
                return ["cn", "en"].indexOf(value) !== -1;
            },
            default: () => "cn",
        },
        //PasswordInput键盘使用，或其他新拓展输入控件的参数和type有管理
        inputOtherProps: {
            type: Object,
            require: false,
            default: () => {},
        },
        //全新数字键盘的props,或其他拓展的键盘
        keyBoardOtherProps: {
            type: [Object, undefined],
            default: () => undefined,
        },
        canSwitchOtherBoard: {
            type: Boolean, //输入框是否能切换输入其他方式输入，默认true
            default: () => true,
        },
        decimal: {
            type: Number, //只有type等于float时候才有效,小数个数
            default: 2,
        },
        regx: {
            type: [RegExp],
        },
        keyBoard: {
            type: Object,
        },
        allowEnter: {
            type: Boolean,
            default: () => false, //是否允许回车键，默认否
        },
        showFixedInput: {
            type: Boolean,
            default: () => false,
        },
        placeholder: {
            type: String,
            default: () => "",
        },
        maxLength: {
            type: Number,
        },
        docBodyAutoScroll: {
            type: Boolean,
            default: () => true,
        },
        //input可滚动的容器id或class，input获取焦点时候出发该dom滚动，让input出现到可视区
        scrollWrap: {
            type: String,
        },
        //最外层容器如果是固定横屏时候，会用到,默认是0，也就是不选择
        rotate: {
            validator: function(value) {
                return [0, 90, -90].indexOf(value) > -1;
            },
            default: () => 0,
        },
        disabled: {
            type: Boolean,
            default: () => false,
        },
        height: {
            type: [String, Number],
            default: () => -1,
        },
        inputProps: {
            default: () => {
                return {};
            },
        },
        keyBoardProps: {
            default: () => {
                return {};
            },
        },
    },
};